package com.todo.member.common.base.redis;

/**
 * @author azhebuxing
 * @date 2025/3/5 03:47
 * @description
 */
public class MemberKeyBuild {


    public static String buildMemberDetailKey(Long userId) {
        return String.format(MemberRedisKey.MEMBER_DETAIL_KEY, userId);
    }

    public static String buildMemberLevelKey(Long id) {
        return String.format(MemberRedisKey.MEMBER_LEVEL_KEY, id);
    }

    public static String buildEffectiveMemberLevelListKey() {
        return MemberRedisKey.EFFECTIVE_MEMBER_LEVEL_LIST_KEY;
    }

    public static String buildEffectiveMemberMedalKey() {
        return MemberRedisKey.EFFECTIVE_MEMBER_MEDAL_LIST_KEY;
    }

    public static String buildEffectiveMemberVipInfoList() {
        return MemberRedisKey.EFFECTIVE_MEMBER_VIP_INFO_LIST;
    }

    public static String buildMemberVipInfoKey(Long id) {
        return String.format(MemberRedisKey.MEMBER_VIP_INFO_KEY, id);
    }
}
